﻿<%@ WebHandler Language="C#" Class="WXActivity.GetHandler" %>

using System;
using System.Web;
using Activity;
using Activity.API;

namespace WXActivity
{
    /// <summary>
    /// Get请求
    /// </summary>
    public class GetHandler : BaseHandler
    {
        public GetHandler()
        {
            base._httpReuqest = Context.Request.QueryString;
        }

        /// <summary>
        /// 初始化奖池
        /// </summary>
        public void InitPool()
        {
            //var isFirst = _httpReuqest.Get("isFirst");
            var lottery = new LotteryHandler();
            var result = lottery.InitPrizePool(true);
            Success(result);
        }


        /// <summary>
        /// 初始化奖池
        /// </summary>
        public void InitNewPool()
        {
            //var isFirst = _httpReuqest.Get("isFirst");
            var lottery = new OpenShopLotteryHandler();
            var result = lottery.InitPrizePool(true);
            Success(result);
        }
    }
}